<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
  <ul class="nav nav-tabs">
    <li><a href="{:url('Nav/index')}">导航列表</a></li>
    <li><a href="{:url('Nav/add')}">添加导航</a></li>
    <li class="active"><a href="{:url('Nav/edit', array('id' => $nav.id))}">编辑导航</a></li>
  </ul>
  <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Nav/editPost')}">
    <input type="hidden" name="id" value="{$nav.id}">
    <div class="form-group">
      <label for="input-title" class="col-sm-2 control-label">标题<span class="form-required">*</span></label>
      <div class="col-md-6 col-sm-10">
        <input type="text" class="form-control" id="input-title" name="title" value="{$nav.title}">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">图片<span class="form-required">*</span></label>
      <div class="col-md-6 col-sm-10">
        <input id="photo-1" type="hidden" name="image" value="{$nav.image}">
        <input id="photo-1-name" class="form-control" type="text" name="" value="{$nav.image}" title="图片名称" disabled readonly>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label"></label>
      <div class="col-md-6 col-sm-10">
        <img id="photo-1-preview" width="40px">
        <a href="javascript:uploadOneImage('图片上传','#photo-1');" class="btn btn-primary">上传</a>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">地址链接<span class="form-required">*</span></label>
      <div class="col-md-6 col-sm-10">
        <input type="text" class="form-control" name="url" value="{$nav.url}">
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-primary js-ajax-submit">编辑</button>
        <a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
      </div>
    </div>
  </form>
</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
